const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  name: state => state.user.userInfo.username,
  userId: state => state.user.userInfo.userId,
  staffPhoto: state => state.user.userInfo.staffPhoto
}

// 需求: 页面中获取 user 模块的 token
// 原生: this.$store.state.user.token  需要想 token 是哪个模块的呀?
// getters: this.$store.getters.token  我要找getters下的token
// ...mapGetters(['name', 'avatar', 'token'])

export default getters
